import axios from '@/utils/request'

export function getMomentListByPageNum(token, pageNum) {
  return axios({
    url: 'moments',
    method: 'GET',
    headers: {
      Authorization: token,
    },
    params: {
      pageNum,
    },
  })
}

export function likeMoment(id) {
  return axios({
    url: `moment/like/${id}`,
    method: 'POST',
  })
}
